package org.example.campsys.service;

import org.example.campsys.mapper.StudentMapper;
import org.example.campsys.model.CourseInfo;
import org.example.campsys.model.LearningInfo;
import org.example.campsys.model.UnitInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired
    private StudentMapper studentMapper;

    public List<UnitInfo> selMyUnit(Integer courseId){
       return studentMapper.selMyUnit(courseId);
    }
    public Integer finishStudy(LearningInfo learningInfo){
        return studentMapper.finishStudy(learningInfo);
    }
    public List<LearningInfo> selMyTask(Integer stuInClassId){
        return studentMapper.selMyTask(stuInClassId);
    }
    public List<CourseInfo> selMyCourse(Integer studentId){ return studentMapper.selMyCourse(studentId);}
    public Integer selMyStuId(Integer loginId){ return studentMapper.selMyStuId(loginId);}
}
